using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Pg.BioMedics.RatObserver.Database.Model;
using Pg.BioMedics.RatObserver.Util;

namespace Pg.BioMedics.RatObserver
{
    public partial class EditVideoInfoForm : Form
    {
        private VideoInfo vi;

        public EditVideoInfoForm()
        {
            InitializeComponent();
        }

        public void setVideoInfo(VideoInfo vi)
        {
            this.vi = vi;
            nameTextBox.Text = vi.name;
            originalNameLabel.Text = vi.originalFileName;
            descTextBox.Text = vi.userDescription;
            lenghtLabel.Text = DTUtil.getFormattedTime(vi.lenght);
            framesCountLabel.Text = vi.framesCount + "";
        }

        public VideoInfo getVideoInfo()
        {
            vi.name = nameTextBox.Text;
            vi.userDescription = descTextBox.Text;
            return vi;
        }
    }
}